<?php
$this->breadcrumbs = array(
    'Manage Posts',
);
?>
<h1>Manage Posts</h1>


<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'faq-grid',
    'dataProvider' => $model->search(),
    'filter' => $model,
    'columns' => array(
        array(
            'name' => 'title',
            'type' => 'raw',
            'value' => 'CHtml::link(CHtml::encode($data->title), $data->url)'
        ),
        array(
            'name' => 'status',
            'value' => 'Lookup::item("PostStatus",$data->status)',
            'filter' => Lookup::items('PostStatus'),
        ),
        array(
            'name' => 'create_time',
            'value' => 'date("Y-m-d",strtotime($data->create_time))',
            'filter' => false,
        ),
        array(
            'class' => 'CButtonColumn',
        ),
    ),
));
?>

